#ifndef COLORVIEW_H
#define COLORVIEW_H

#include <QWidget>
#include <QPixmap>
#include <QList>
#include <QSizeF>

class QResizeEvent;
class QPaintEvent;

class ColorView : public QWidget
{
	Q_OBJECT

public:
    ColorView(QWidget *parent = 0);
    ~ColorView();
	void resizeEvent(QResizeEvent *);
	void clear();
	void addColor(QSizeF r, QSizeF g, QSizeF b);
	void reDraw();
	void paintEvent(QPaintEvent *);

private:
	QPixmap background;
	QList<QSizeF> cR;
	QList<QSizeF> cG;
	QList<QSizeF> cB;
};

#endif // COLORVIEW_H
